package IO;



public class Waypoint {
	
	private int pointX = -1;
	private int pointY = -1;
	
	public Waypoint(int x, int y)
	{
		this.pointX = x;
		this.pointY = y;
	}
	
	public int getX()
	{
		return pointX;
	}
	
	public int getY()
	{
		return pointY;
	}
	
	public boolean isEmpty()
	{
		if(pointX == -1 && pointY == -1)
		{
			return true;
		}
		else
		{
		return false;
		}
	}
	
	public boolean equals(Waypoint other)
	{
		if(this.pointX == other.pointX && this.pointY == other.pointY)
		{
			return true;
		}
		else
		{
			return false;
		}
	}
	
	public void move(char direction)
	{
		switch(direction)
		{
		case '^':
			this.pointY--;
			break;
		case 'v':
			this.pointY++;
			break;
		case '<':
			this.pointX--;
			break;
		case '>':
			this.pointX++;
			break;
		}
	}

}
